package com.chixing.day09_innerclass.order;

public class EnterpriseOrder extends Order {
   public EnterpriseOrder(){}

    public EnterpriseOrder(int orderId, String orderName, int orderPrice, int orderNum, String orderDate) {
        super(orderId, orderName, orderPrice, orderNum, orderDate);
    }

    @Override
    public Order orderClone() {
        EnterpriseOrder suborder = new EnterpriseOrder();
        suborder.setOrderId(this.getOrderId());
        suborder.setOrderName(this.getOrderName());
        suborder.setOrderPrice(this.getOrderPrice());
        suborder.setOrderNum(this.getOrderNum());
        suborder.setOrderDate(this.getOrderDate());
        return suborder;
    }
}
